home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / themes / Crux / metacity-1 / metacity-theme-1.xml < prev    next >
Encoding:
Extensible Markup Language  |  2009-05-14  |  22.3 KB  |  580 lines

  1. <?xml version="1.0"?>
  2. <metacity_theme>
  3. <info>
  4.   <name>Crux</name>
  5.   <author>Anders Carlsson <andersca@gnu.org></author>
  6.   <copyright> Eazel Inc, 2000</copyright>
  7.   <date>February 6, 2002</date>
  8.   <description>A port of the Crux theme by Arlo Rose and John Harper</description>
  9. </info>
  10.  
  11. <!-- define constants -->
  12. <constant name="IconTitleSpacing" value="2"/> <!-- Space between menu button and title -->
  13. <constant name="CenterTitlePieceWidth" value="48"/> <!-- Width of center title piece -->
  14. <constant name="ButtonWidth" value="16"/> <!-- Button width -->
  15.  
  16. <frame_geometry name="normal">
  17.   <distance name="left_width" value="5"/>
  18.   <distance name="right_width" value="6"/>
  19.   <distance name="bottom_height" value="6"/>
  20.   <distance name="left_titlebar_edge" value="5"/>
  21.   <distance name="right_titlebar_edge" value="6"/>
  22.   <aspect_ratio name="button" value="1.0"/>
  23.   <distance name="title_vertical_pad" value="0"/>
  24.   <border name="title_border" left="0" right="0" top="3" bottom="3"/>
  25.   <border name="button_border" left="0" right="0" top="3" bottom="3"/>
  26. </frame_geometry>
  27.  
  28. <frame_geometry name="border" has_title="false">
  29.   <distance name="left_width" value="5"/>
  30.   <distance name="right_width" value="6"/>
  31.   <distance name="bottom_height" value="6"/>
  32.   <distance name="left_titlebar_edge" value="0"/>
  33.   <distance name="right_titlebar_edge" value="0"/>
  34.   <distance name="button_width" value="0"/>
  35.   <distance name="button_height" value="0"/>
  36.   <distance name="title_vertical_pad" value="5"/>
  37.   <border name="title_border" left="0" right="0" top="0" bottom="0"/>
  38.   <border name="button_border" left="0" right="0" top="0" bottom="0"/>
  39. </frame_geometry>
  40.  
  41. <!-- Buttons -->
  42.  
  43. <draw_ops name="active_button">
  44.   <image filename="active-button.png" x="0" y="0" width="width" height="height"/>
  45. </draw_ops>
  46.  
  47. <draw_ops name="active_button_pressed">
  48.   <image filename="active-button-pressed.png" x="0" y="0" width="width" height="height"/>
  49. </draw_ops>
  50.  
  51. <draw_ops name="active_button_prelight">
  52.   <image filename="active-button-prelight.png" x="0" y="0" width="width" height="height"/>
  53. </draw_ops>
  54.  
  55. <draw_ops name="inactive_button">
  56.   <image filename="inactive-button.png" x="0" y="0" width="width" height="height"/>
  57. </draw_ops>
  58.  
  59. <draw_ops name="inactive_button_pressed">
  60.   <image filename="inactive-button-pressed.png" x="0" y="0" width="width" height="height"/>
  61. </draw_ops>
  62.  
  63. <draw_ops name="inactive_button_prelight">
  64.   <image filename="inactive-button-prelight.png" x="0" y="0" width="width" height="height"/>
  65. </draw_ops>
  66.  
  67. <!-- Inactive style -->
  68. <frame_style name="normal" geometry="normal">
  69.   <piece position="left_edge">
  70.     <draw_ops>
  71.       <image filename="inactive-left-border.png" x="0" y="0" width="object_width" height="height"/>
  72.     </draw_ops>
  73.   </piece>
  74.  
  75.   <piece position="right_edge">
  76.     <draw_ops>
  77.       <image filename="inactive-right-border.png" x="0" y="0" width="object_width" height="height"/>
  78.     </draw_ops>
  79.   </piece>
  80.  
  81.   <piece position="title">
  82.     <draw_ops>
  83.       <title color="gtk:fg[SELECTED]" x="IconTitleSpacing" y="0"/>
  84.     </draw_ops>
  85.   </piece>
  86.  
  87.   <piece position="titlebar">
  88.     <draw_ops>
  89.  
  90.       <image filename="inactive-left-top-border.png" 
  91.              x="0" y="0" width="object_width" height="height"/>
  92.       <image filename="inactive-right-top-border.png" 
  93.              x="width - object_width" y="0" width="object_width" height="height"/>
  94.  
  95.       <image filename="inactive-top-center-left.png" 
  96.              x="4" y="0" 
  97.              width="(left_width + ButtonWidth + IconTitleSpacing + title_width) `min`
  98.                     (width - right_width - 3 * ButtonWidth - CenterTitlePieceWidth * height / 22 - 3)" 
  99.              height="height"/>
  100.  
  101.       <image filename="inactive-top-center-mid.png" 
  102.              x="((left_width + ButtonWidth + IconTitleSpacing + title_width) `min` (width - object_width * height / 22 - right_width - 3 * ButtonWidth)) + 1"
  103.              y="0" width="object_width * height / 22" height="height"/>
  104.  
  105.       <image filename="inactive-top-center-right.png"
  106.              x="((left_width + ButtonWidth + IconTitleSpacing + title_width + CenterTitlePieceWidth * height / 22) `min` (width - 3 * ButtonWidth - right_width)) + 1"
  107.              y="0"
  108.              width="(width - title_width - left_width - ButtonWidth - IconTitleSpacing - CenterTitlePieceWidth * height / 22 - right_width) `max` (3 * ButtonWidth)"
  109.              height="height"/>
  110.  
  111.     </draw_ops>
  112.   </piece>
  113.  
  114.   <!-- We have to draw the bottom edge in the background piece 
  115.        because that's the only way we can get the correct window height -->
  116.   <piece position="overlay">
  117.     <draw_ops>
  118.       <image filename="inactive-bottom-left-corner.png" 
  119.              x="0" y="height - object_height" width="object_width" height="object_height"/>
  120.       <image filename="inactive-bottom-left-border.png" x="5" y="height - object_height" 
  121.              width="((title_width + height / 2 - 4) `min` (width - object_width - 26))"
  122.              height="object_height"/>
  123.       <image filename="inactive-bottom-mid-border.png" 
  124.              x="((title_width + height / 2) `min` (width - object_width - 6)) + 1" 
  125.              y="height - object_height" width="object_width" height="object_height"/>
  126.  
  127.       <image filename="inactive-bottom-right-border.png"
  128.              x="((title_width + height / 2 + 32)) + 1" 
  129.              y="height - object_height" 
  130.              width="(width - title_width - height / 2 - 32 - 7) `max` 0"
  131.              height="object_height"/>
  132.  
  133.       <image filename="inactive-bottom-right-corner.png" 
  134.              x="width - object_width" y="height - object_height" width="object_height" height="object_height"/>
  135.  
  136.     </draw_ops>
  137.   </piece>
  138.  
  139.   <button function="close" state="normal">
  140.     <draw_ops>
  141.       <include name="inactive_button"/>
  142.       <image filename="inactive-close-button.png" x="2" y="2" width="width-4" height="height-4"/>
  143.     </draw_ops>
  144.   </button>
  145.  
  146.   <button function="close" state="pressed">
  147.     <draw_ops>
  148.       <include name="inactive_button_pressed"/>
  149.       <image filename="inactive-close-button.png" x="2" y="2" width="width-4" height="height-4"/>
  150.     </draw_ops>
  151.   </button>
  152.  
  153.   <button function="close" state="prelight">
  154.     <draw_ops>
  155.       <include name="inactive_button_prelight"/>
  156.       <image filename="inactive-close-button.png" x="2" y="2" width="width-4" height="height-4"/>
  157.     </draw_ops>
  158.   </button>
  159.  
  160.   <button function="minimize" state="normal">
  161.     <draw_ops>
  162.       <include name="inactive_button"/>
  163.       <image filename="inactive-minimize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  164.     </draw_ops>
  165.   </button>
  166.  
  167.   <button function="minimize" state="pressed">
  168.     <draw_ops>
  169.       <include name="inactive_button_pressed"/>
  170.       <image filename="inactive-minimize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  171.     </draw_ops>
  172.   </button>
  173.  
  174.   <button function="minimize" state="prelight">
  175.     <draw_ops>
  176.       <include name="inactive_button_prelight"/>
  177.       <image filename="inactive-minimize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  178.     </draw_ops>
  179.   </button>
  180.  
  181.   <button function="maximize" state="normal">
  182.     <draw_ops>
  183.       <include name="inactive_button"/>
  184.       <image filename="inactive-maximize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  185.     </draw_ops>
  186.   </button>
  187.  
  188.   <button function="maximize" state="pressed">
  189.     <draw_ops>
  190.       <include name="inactive_button_pressed"/>
  191.       <image filename="inactive-maximize-button.png" x="2" y="2" width="width - 4" height="height - 4"/>
  192.     </draw_ops>
  193.   </button>
  194.  
  195.   <button function="maximize" state="prelight">
  196.     <draw_ops>
  197.       <include name="inactive_button_prelight"/>
  198.       <image filename="inactive-maximize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  199.     </draw_ops>
  200.   </button>
  201.  
  202.   <button function="menu" state="normal">
  203.     <draw_ops>
  204.       <image filename="inactive-menu-button.png" x="0" y="0" width="width" height="height"/>
  205.     </draw_ops>
  206.   </button>
  207.  
  208.   <button function="menu" state="pressed">
  209.     <draw_ops>
  210.       <image filename="inactive-menu-button-pressed.png" x="0" y="0" width="width" height="height"/>
  211.     </draw_ops>
  212.   </button>
  213.   <button function="menu" state="prelight">
  214.     <draw_ops>
  215.       <image filename="inactive-menu-button-prelight.png" x="0" y="0" width="width" height="height"/>
  216.     </draw_ops>
  217.   </button>
  218. </frame_style>
  219.  
  220. <frame_style name="normal_maximized" parent="normal">
  221.   <button function="maximize" state="normal">
  222.     <draw_ops>
  223.       <include name="inactive_button"/>
  224.       <image filename="inactive-restore-button.png" x="2" y="2" width="width-4" height="height-4"/>
  225.     </draw_ops>
  226.   </button>
  227.  
  228.   <button function="maximize" state="pressed">
  229.     <draw_ops>
  230.       <include name="inactive_button_pressed"/>
  231.       <image filename="inactive-restore-button.png" x="2" y="2" width="width - 4" height="height - 4"/>
  232.     </draw_ops>
  233.   </button>
  234.  
  235.   <button function="maximize" state="prelight">
  236.     <draw_ops>
  237.       <include name="inactive_button_prelight"/>
  238.       <image filename="inactive-restore-button.png" x="2" y="2" width="width-4" height="height-4"/>
  239.     </draw_ops>
  240.   </button>
  241.  
  242. </frame_style>
  243.  
  244. <!-- Active (focused) shaded style -->
  245.     <frame_style name="normal_shaded" geometry="normal" parent="normal">
  246.       <piece position="left_titlebar_edge">
  247.         <draw_ops>
  248.           <image filename="inactive-left-top-border-shaded.png" x="0" y="3" width="object_width" height="object_height"/>
  249.         </draw_ops>
  250.       </piece>
  251.       <piece position="right_titlebar_edge">
  252.         <draw_ops>
  253.           <image filename="inactive-right-top-border-shaded.png" x="width - object_width" y="3" width="object_width" height="object_height"/>
  254.         </draw_ops>
  255.       </piece>
  256.     </frame_style>
  257.  
  258.  
  259. <!-- Active (focused) style -->
  260. <frame_style name="focused" geometry="normal">
  261.   <piece position="left_edge">
  262.     <draw_ops>
  263.       <image colorize="gtk:bg[SELECTED]" filename="active-left-border.png" x="0" y="0" width="object_width" height="height"/>
  264.     </draw_ops>
  265.   </piece>
  266.  
  267.   <piece position="right_edge">
  268.     <draw_ops>
  269.       <image filename="active-right-border.png" x="0" y="0" width="object_width" height="height"/>
  270.     </draw_ops>
  271.   </piece>
  272.  
  273.   <piece position="title">
  274.     <draw_ops>
  275.       <title color="gtk:fg[SELECTED]" x="IconTitleSpacing" y="((height - title_height) / 2) `max` 0"/>
  276.     </draw_ops>
  277.   </piece>
  278.  
  279.   <piece position="titlebar">
  280.     <draw_ops>
  281.  
  282.       <image filename="active-left-top-border.png" 
  283.              colorize="gtk:bg[SELECTED]"
  284.              x="0" y="0" width="object_width" height="height"/>
  285.  
  286.       <image filename="active-right-top-border.png" 
  287.              x="width - object_width" y="0" width="object_width" height="height"/>
  288.  
  289.       <image filename="active-top-center-left.png" 
  290.              colorize="gtk:bg[SELECTED]"
  291.              x="4" y="0" 
  292.              width="(left_width + ButtonWidth + IconTitleSpacing + title_width) `min`
  293.                     (width - right_width - 3 * ButtonWidth - CenterTitlePieceWidth * height / 22 - 3)" 
  294.              height="height"/>
  295.  
  296.       <image filename="active-top-center-mid-left.png" 
  297.              colorize="gtk:bg[SELECTED]"
  298.              x="((left_width + ButtonWidth + IconTitleSpacing + title_width) `min` (width - object_width * height / 22 - right_width - 3 * ButtonWidth)) + 1"
  299.              y="0" width="object_width * height / 22" height="height"/>
  300.  
  301.       <image filename="active-top-center-mid-right.png" 
  302.              x="((left_width + ButtonWidth + IconTitleSpacing + title_width) `min` (width - object_width * height / 22 - right_width - 3 * ButtonWidth)) + 1"
  303.              y="0" width="object_width * height / 22" height="height"/>
  304.  
  305.       <image filename="active-top-center-right.png"
  306.              x="((left_width + ButtonWidth + IconTitleSpacing + title_width + CenterTitlePieceWidth * height / 22) `min` (width - 3 * ButtonWidth - right_width)) + 1"
  307.              y="0"
  308.              width="(width - title_width - left_width - ButtonWidth - IconTitleSpacing - CenterTitlePieceWidth * height / 22 - right_width) `max` (3 * ButtonWidth)"
  309.              height="height"/>
  310.  
  311.     </draw_ops>
  312.   </piece>
  313.  
  314.   <!-- We have to draw the bottom edge in the background piece 
  315.        because that's the only way we can get the correct window height -->
  316.   <piece position="overlay">
  317.     <draw_ops>
  318.       <image filename="active-bottom-left-corner.png" 
  319.              colorize="gtk:bg[SELECTED]"
  320.              x="0" y="height - object_height" width="object_width" height="object_height"/>
  321.       <image filename="active-bottom-left-border.png" x="5" y="height - object_height" 
  322.              colorize="gtk:bg[SELECTED]"
  323.              width="((title_width + height / 2 - 4) `min` (width - object_width - 26))"
  324.              height="object_height"/>
  325.       <image filename="active-bottom-mid-left-border.png" 
  326.              colorize="gtk:bg[SELECTED]"
  327.              x="((title_width + height / 2) `min` (width - object_width - 6)) + 1" 
  328.              y="height - object_height" width="object_width" height="object_height"/>
  329.       <image filename="active-bottom-mid-right-border.png" 
  330.              x="((title_width + height / 2) `min` (width - object_width - 6)) + 1" 
  331.              y="height - object_height" width="object_width" height="object_height"/>
  332.  
  333.       <image filename="active-bottom-right-border.png"
  334.              x="((title_width + height / 2 + 32)) + 1" 
  335.              y="height - object_height" 
  336.              width="(width - title_width - height / 2 - 32 - 7) `max` 0"
  337.              height="object_height"/>
  338.  
  339.       <image filename="active-bottom-right-corner.png" 
  340.              x="width - object_width" y="height - object_height" width="object_height" height="object_height"/>
  341.  
  342.     </draw_ops>
  343.   </piece>
  344.  
  345.   <button function="close" state="normal">
  346.     <draw_ops>
  347.       <include name="active_button"/>
  348.       <image filename="active-close-button.png" x="2" y="2" width="width-4" height="height-4"/>
  349.     </draw_ops>
  350.   </button>
  351.  
  352.   <button function="close" state="pressed">
  353.     <draw_ops>
  354.       <include name="active_button_pressed"/>
  355.       <image filename="active-close-button.png" x="2" y="2" width="width-4" height="height-4"/>
  356.     </draw_ops>
  357.   </button>
  358.  
  359.   <button function="close" state="prelight">
  360.     <draw_ops>
  361.       <include name="active_button_prelight"/>
  362.       <image filename="active-close-button.png" x="2" y="2" width="width-4" height="height-4"/>
  363.     </draw_ops>
  364.   </button>
  365.  
  366.   <button function="minimize" state="normal">
  367.     <draw_ops>
  368.       <include name="active_button"/>
  369.       <image filename="active-minimize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  370.     </draw_ops>
  371.   </button>
  372.  
  373.   <button function="minimize" state="pressed">
  374.     <draw_ops>
  375.       <include name="active_button_pressed"/>
  376.       <image filename="active-minimize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  377.     </draw_ops>
  378.   </button>
  379.  
  380.   <button function="minimize" state="prelight">
  381.     <draw_ops>
  382.       <include name="active_button_prelight"/>
  383.       <image filename="active-minimize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  384.     </draw_ops>
  385.   </button>
  386.  
  387.   <button function="maximize" state="normal">
  388.     <draw_ops>
  389.       <include name="active_button"/>
  390.       <image filename="active-maximize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  391.     </draw_ops>
  392.   </button>
  393.  
  394.   <button function="maximize" state="pressed">
  395.     <draw_ops>
  396.       <include name="active_button_pressed"/>
  397.       <image filename="active-maximize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  398.     </draw_ops>
  399.   </button>
  400.  
  401.   <button function="maximize" state="prelight">
  402.     <draw_ops>
  403.       <include name="active_button_prelight"/>
  404.       <image filename="active-maximize-button.png" x="2" y="2" width="width-4" height="height-4"/>
  405.     </draw_ops>
  406.   </button>
  407.  
  408.   <button function="menu" state="normal">
  409.     <draw_ops>
  410.       <image colorize="gtk:bg[SELECTED]" filename="active-menu-button.png" x="0" y="0" width="width" height="height"/>
  411.     </draw_ops>
  412.   </button>
  413.  
  414.   <button function="menu" state="pressed">
  415.     <draw_ops>
  416.       <image colorize="gtk:bg[SELECTED]" filename="active-menu-button-pressed.png" x="0" y="0" width="width" height="height"/>
  417.     </draw_ops>
  418.   </button>
  419.   <button function="menu" state="prelight">
  420.     <draw_ops>
  421.       <image colorize="gtk:bg[SELECTED]" filename="active-menu-button-prelight.png" x="0" y="0" width="width" height="height"/>
  422.     </draw_ops>
  423.   </button>
  424. </frame_style>
  425.  
  426. <frame_style name="focused_maximized" geometry="normal" parent="focused">
  427.   <button function="maximize" state="normal">
  428.     <draw_ops>
  429.       <include name="active_button"/>
  430.       <image filename="active-restore-button.png" x="2" y="2" width="width-4" height="height-4"/>
  431.     </draw_ops>
  432.   </button>
  433.   
  434.   <button function="maximize" state="pressed">
  435.     <draw_ops>
  436.       <include name="active_button_pressed"/>
  437.       <image filename="active-restore-button.png" x="2" y="2" width="width-4" height="height-4"/>
  438.     </draw_ops>
  439.   </button>
  440.  
  441.   <button function="maximize" state="prelight">
  442.     <draw_ops>
  443.       <include name="active_button_prelight"/>
  444.       <image filename="active-restore-button.png" x="2" y="2" width="width-4" height="height-4"/>
  445.     </draw_ops>
  446.   </button>
  447.  
  448. </frame_style>
  449.  
  450. <!-- Active (focused) shaded style -->
  451. <frame_style name="focused_shaded" geometry="normal" parent="focused">
  452.   <piece position="left_titlebar_edge">
  453.     <draw_ops>
  454.       <image colorize="gtk:bg[SELECTED]" filename="active-left-top-border-shaded.png" x="0" y="3" width="object_width" height="object_height"/>
  455.     </draw_ops>
  456.   </piece>
  457.   <piece position="right_titlebar_edge">
  458.     <draw_ops>
  459.       <image filename="active-right-top-border-shaded.png" x="width - object_width" y="3" width="object_width" height="object_height"/>
  460.     </draw_ops>
  461.   </piece>
  462. </frame_style>
  463.  
  464. <!-- Inactive border style -->
  465. <frame_style name="border_unfocused" geometry="border" parent="normal">
  466.   <piece position="title"><draw_ops/></piece>
  467.   <piece position="titlebar">
  468.     <draw_ops>
  469.       <image filename="inactive-top-left-corner.png" 
  470.              x="0" y="0" width="object_width" height="object_height"/>
  471.       <image filename="inactive-border-top-left-border.png" x="5" y="0" 
  472.              width="((title_width + height / 2 - 4) `min` (width - object_width - 26))"
  473.              height="object_height"/>
  474.       <image filename="inactive-top-mid-border.png" 
  475.              x="((title_width + height / 2) `min` (width - object_width - 6)) + 1" 
  476.              y="0" width="object_width" height="object_height"/>
  477.       <image filename="inactive-border-top-right-border.png"
  478.              x="((title_width + height / 2 + 32)) + 1" 
  479.              y="0" 
  480.              width="(width - title_width - height / 2 - 32 - 7) `max` 0"
  481.              height="object_height"/>
  482.       <image filename="inactive-top-right-corner.png" 
  483.              x="width - object_width" y="0" width="object_height" height="object_height"/>
  484.     </draw_ops>
  485.   </piece>
  486. </frame_style>
  487.  
  488. <!-- Active (focused) border style -->
  489. <frame_style name="border_focused" geometry="border" parent="focused">
  490.   <piece position="title"><draw_ops/></piece>
  491.   <piece position="titlebar">
  492.     <draw_ops>
  493.       <image filename="active-top-left-corner.png" 
  494.              colorize="gtk:bg[SELECTED]"
  495.              x="0" y="0" width="object_width" height="object_height"/>
  496.       <image filename="active-border-top-left-border.png" 
  497.              colorize="gtk:bg[SELECTED]" x="5" y="0"
  498.              width="((title_width + height / 2 - 4) `min` (width - object_width - 26))"
  499.              height="object_height"/>
  500.       <image filename="active-top-mid-left-border.png" 
  501.              colorize="gtk:bg[SELECTED]"
  502.              x="((title_width + height / 2) `min` (width - object_width - 6)) + 1" 
  503.              y="0" width="object_width" height="object_height"/>
  504.       <image filename="active-top-mid-right-border.png" 
  505.              x="((title_width + height / 2) `min` (width - object_width - 6)) + 1" 
  506.              y="0" width="object_width" height="object_height"/>
  507.       <image filename="active-border-top-right-border.png"
  508.              x="((title_width + height / 2 + 32)) + 1" y="0" 
  509.              width="(width - title_width - height / 2 - 32 - 7) `max` 0"
  510.              height="object_height"/>
  511.       <image filename="active-top-right-corner.png" 
  512.              x="width - object_width" y="0" width="object_height" height="object_height"/>
  513.     </draw_ops>
  514.   </piece>
  515. </frame_style>
  516.  
  517. <frame_style_set name="normal">
  518. <frame focus="yes" state="shaded" style="focused_shaded"/>
  519. <frame focus="yes" state="normal" resize="both" style="focused"/>
  520. <frame focus="yes" state="maximized" style="focused_maximized"/>
  521. <frame focus="yes" state="maximized_and_shaded" style="focused_maximized"/>
  522. <frame focus="no" state="normal" resize="both" style="normal"/>
  523. <frame focus="no" state="shaded" style="normal_shaded"/>
  524. <frame focus="no" state="maximized" style="normal_maximized"/>
  525. <frame focus="no" state="maximized_and_shaded" style="normal_maximized"/>
  526. </frame_style_set>
  527.  
  528. <frame_style_set name="border">
  529. <frame focus="yes" state="normal" resize="both" style="border_focused"/>
  530. <frame focus="yes" state="maximized" style="border_focused"/>
  531. <frame focus="yes" state="shaded" style="border_focused"/>
  532. <frame focus="yes" state="maximized_and_shaded" style="border_focused"/>
  533. <frame focus="no" state="normal" resize="both" style="border_unfocused"/>
  534. <frame focus="no" state="maximized" style="border_unfocused"/>
  535. <frame focus="no" state="shaded" style="border_unfocused"/>
  536. <frame focus="no" state="maximized_and_shaded" style="border_unfocused"/>
  537. </frame_style_set>
  538.  
  539. <window type="normal" style_set="normal"/>
  540. <window type="dialog" style_set="normal"/>
  541. <window type="modal_dialog" style_set="normal"/>
  542. <window type="menu" style_set="normal"/>
  543. <window type="utility" style_set="normal"/>
  544. <window type="border" style_set="border"/>
  545.  
  546. <menu_icon function="close" state="normal">
  547.   <draw_ops> 
  548.     <image filename="active-close-button.png" 
  549.            x="(width - object_width) / 2"
  550.            y="(height - object_height) / 2"
  551.            width="object_width" height="object_height"/>
  552.   </draw_ops>
  553. </menu_icon>
  554.  
  555. <menu_icon function="maximize" state="normal">
  556.   <draw_ops>
  557.     <image filename="active-maximize-button.png" 
  558.            x="(width - object_width) / 2"
  559.            y="(height - object_height) / 2"
  560.            width="object_width" height="object_height"/>
  561.   </draw_ops>
  562. </menu_icon>
  563.  
  564.  
  565. <menu_icon function="minimize" state="normal">
  566.   <draw_ops>
  567.     <image filename="active-minimize-button.png" 
  568.            x="(width - object_width) / 2"
  569.            y="(height - object_height) / 2"
  570.            width="object_width" height="object_height"/>
  571.   </draw_ops>
  572. </menu_icon>
  573.  
  574. <menu_icon function="unmaximize" state="normal">
  575.   <draw_ops>
  576.   </draw_ops>
  577. </menu_icon>
  578.  
  579. </metacity_theme>
  580.